Blockly.Blocks.texts = {};
Blockly.Blocks.texts.HUE = 160;

Blockly.Blocks.text = {
    init: function() {
        this.setHelpUrl(Blockly.Msg.TEXT_TEXT_HELPURL);
        this.setColour(Blockly.Blocks.texts.HUE);
        this.appendDummyInput().appendField(this.newQuote_(!0)).appendField(new Blockly.FieldTextInput(""), "TEXT").appendField(this.newQuote_(!1));
        this.setOutput(!0, "String");
        this.setTooltip(Blockly.Msg.TEXT_TEXT_TOOLTIP)
    },
    newQuote_: function(a) {
        return new Blockly.FieldImage(a == this.RTL ? "": "", 12, 12, '"')
    }
};
//Blocklys Control
Blockly.c.texts = {};
Blockly.c.text = function() {
    return [Blockly.c.quote_(this.getFieldValue("TEXT")), Blockly.c.ORDER_ATOMIC]
};